const app = getApp();
Page({

  data: {
    applyList:[]
  },
  onShow() {
    let that = this;
    wx.request({
        url: app.rootUrl + '/getApplys',
        data: {userId: app.accountInfo().accountId, status: 2},
        header: {
          'Content-Type': 'application/x-www-form-urlencoded',
        },
        method: 'POST',
        success: function (res) {
          that.setData({
            applyList: res.data.rows
          });
        }
      })
  }
})